//*********************************************************************************************
//  Sphere33.java       JavaFoundations
// Calculation of sphere surface surface area and volume.
//*********************************************************************************************

import java.util.Scanner;

public class Sphere33
{
    //-----------------------------------------------------------------------------------------
    // 体积 = 4/3πR^3  表面积=4πr^2
    //-----------------------------------------------------------------------------------------
    public static void main (String[] args)
    {
    double radius, surface_area, volume;

    Scanner scan = new Scanner(System.in);

    System.out.println("Enter the radius: ");
    radius = scan.nextDouble();

    surface_area = Math.PI * Math.pow(radius, 2) * 4;
    volume =  Math.PI * Math.pow(radius, 3) * 4/3;
 
    System.out.println("surface_area: " + surface_area);
    System.out.println("volume: " + volume);
    }
}
    
    
